import ajax from '@/api/apiConfig.js'

export const getOrgAllList = (data) => {
  return ajax.get('org/getOrgAllList', data)
}
/* 获取扣分明细 */
export const getSafeEvaluateDeductionDetails = (data) => {
  return ajax.get('safeEvaluate/getSafeEvaluateDeductionDetails', data)
}
/* 获取联网单位警情数量 */
export const getAlarmTotalCount = (data) => {
  return ajax.get('alarm/getAlarmTotalCount', data)
}
/* 获取消控室值守情况 */
export const getControlRoomDutyCount = (data) => {
  return ajax.get('org/getControlRoomDutyCount', data)
}
/* 获取消控室值守详情 */
export const getOrgControlRoomDutyInfo = (data) => {
  return ajax.get('org/getOrgControlRoomDutyInfo', data)
}
/* 获取防火巡查 */
export const getTaskOrg = (data) => {
  return ajax.get('examine/getTaskOrg', data)
}
/* 获取隐患治理统计 */
export const getHiddenNewStatisticsByOrgIds = (data) => {
  return ajax.get('hiddenDanger/getHiddenNewStatisticsByOrgIds', data)
}
/* 获取隐患整改信息列表 */
export const getHiddenDangerList = (data) => {
  return ajax.get('hiddenDanger/getHiddenDangerList', data)
}
/* 获取地图区域名称 */
export const getAreaById = (data) => {
  return ajax.get('area/getAreaById', data)
}

/*业主端看板*/
/*获取安全指数得分明细 orgId */
export const getScoreItemDetail = (data) => {
  return ajax.get('kanban/getScoreItemDetail', data)
}
/*获取每组得分明细
orgId	num	Y	联网单位编码
groupId	num	Y	分组id
safetyRecordsId	num	Y	记录id
*/
export const getSafetyGroup = (data) => {
  return ajax.get('kanban/getSafetyGroup', data)
}

/*
单位24小时安全指数变化
*/
export const getOrgHourScore = (data) => {
  return ajax.get('orghome/getOrgHourScore', data)
}

/*
获取巡检任务列表
*/
export const selectInspectTaskList = (data) => {
  return ajax.get('orghome/selectExamineTaskList', data)
}

/*
获取巡检任务详情
*/
export const getInspectTaskDetail = (data) => {
  return ajax.get('orghome/getExamineTaskDetail', data)
}

/*
巡检完成度变化图
*/
export const getInspectTrend = (data) => {
  return ajax.get('orghome/getExamineTrend', data)
}

/*
获取热词频度
*/
export const getTopHotWord = (data) => {
  return ajax.get('orghome/getTopHotWord', data)
}

/*
获取隐患年底累积
*/
export const getHiddenTimeAccumulate = (data) => {
  return ajax.get('orghome/getHiddenTimeAccumulate', data)
}

/*
获取业主单位探测器信息总览
*/
export const getFcfRealTimeStatusCountOverview = (data) => {
  return ajax.get('fcf/getFcfRealTimeStatusCountOverview', data)
}

/*
获取巡检任务时间线(首检时间)
*/
export const getInspectTimeLine = (data) => {
  return ajax.get('orghome/getInspectTimeLine', data)
}

/* 
获取分组扣分上限
*/
export const getSafetyGroupMaxScore = (data) => {
  return ajax.get('kanban/getSafetyGroupMaxScore', data)
}
